using System;
using System.IO;

using iTextSharp.text;
using iTextSharp.text.xml;
using iTextSharp.text.pdf;

/// <summary>
/// 
/// </summary>
public class XmlToPdf {
    
	public static void ToPdf()
    {
		//
		Document document = new Document();
        
		try {            			
			//
            PdfWriter.GetInstance(document, new FileStream("salary.pdf", FileMode.Create));
            
			//
			ITextHandler xmlHandler = new ITextHandler(document);
            
			//
            xmlHandler.Parse("result.xml");
		}
		catch (Exception e) {
			
		}
		finally {
			
		}

		
	}
}
